/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.opencourse.entidades;

import java.io.Serializable;
import java.math.BigInteger;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author jonathan
 */
@Entity
@Table(name = "expediente")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Expediente.findAll", query = "SELECT e FROM Expediente e"),
    @NamedQuery(name = "Expediente.findByIdExpediente", query = "SELECT e FROM Expediente e WHERE e.idExpediente = :idExpediente"),
    @NamedQuery(name = "Expediente.findByIdEstudiante", query = "SELECT e FROM Expediente e WHERE e.idEstudiante = :idEstudiante"),
    @NamedQuery(name = "Expediente.findByIdCurso", query = "SELECT e FROM Expediente e WHERE e.idCurso = :idCurso"),
    @NamedQuery(name = "Expediente.findByExpNotaCont1", query = "SELECT e FROM Expediente e WHERE e.expNotaCont1 = :expNotaCont1"),
    @NamedQuery(name = "Expediente.findByExpNotaCont2", query = "SELECT e FROM Expediente e WHERE e.expNotaCont2 = :expNotaCont2"),
    @NamedQuery(name = "Expediente.findByExpNotaEva", query = "SELECT e FROM Expediente e WHERE e.expNotaEva = :expNotaEva"),
    @NamedQuery(name = "Expediente.findByExpEstado", query = "SELECT e FROM Expediente e WHERE e.expEstado = :expEstado")})
public class Expediente implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id_expediente")
    private Integer idExpediente;
    @Column(name = "id_estudiante")
    private BigInteger idEstudiante;
    @Column(name = "id_curso")
    private BigInteger idCurso;
    @Column(name = "exp_nota_cont1")
    private BigInteger expNotaCont1;
    @Column(name = "exp_nota_cont2")
    private BigInteger expNotaCont2;
    @Column(name = "exp_nota_eva")
    private BigInteger expNotaEva;
    @Column(name = "exp_estado")
    private BigInteger expEstado;

    public Expediente() {
    }

    public Expediente(Integer idExpediente) {
        this.idExpediente = idExpediente;
    }

    public Integer getIdExpediente() {
        return idExpediente;
    }

    public void setIdExpediente(Integer idExpediente) {
        this.idExpediente = idExpediente;
    }

    public BigInteger getIdEstudiante() {
        return idEstudiante;
    }

    public void setIdEstudiante(BigInteger idEstudiante) {
        this.idEstudiante = idEstudiante;
    }

    public BigInteger getIdCurso() {
        return idCurso;
    }

    public void setIdCurso(BigInteger idCurso) {
        this.idCurso = idCurso;
    }

    public BigInteger getExpNotaCont1() {
        return expNotaCont1;
    }

    public void setExpNotaCont1(BigInteger expNotaCont1) {
        this.expNotaCont1 = expNotaCont1;
    }

    public BigInteger getExpNotaCont2() {
        return expNotaCont2;
    }

    public void setExpNotaCont2(BigInteger expNotaCont2) {
        this.expNotaCont2 = expNotaCont2;
    }

    public BigInteger getExpNotaEva() {
        return expNotaEva;
    }

    public void setExpNotaEva(BigInteger expNotaEva) {
        this.expNotaEva = expNotaEva;
    }

    public BigInteger getExpEstado() {
        return expEstado;
    }

    public void setExpEstado(BigInteger expEstado) {
        this.expEstado = expEstado;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idExpediente != null ? idExpediente.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Expediente)) {
            return false;
        }
        Expediente other = (Expediente) object;
        if ((this.idExpediente == null && other.idExpediente != null) || (this.idExpediente != null && !this.idExpediente.equals(other.idExpediente))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.opencourse.entidades.Expediente[ idExpediente=" + idExpediente + " ]";
    }
    
}
